package com.originskyseed.platform.base.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.base.model.Logo;
import com.originskyseed.platform.core.base.BasePage;

/**
 * logo信息表Service接口类（OSI_LOGO）
 *
 * @author wlj
 */
public interface ILogoService {

	/**
	 * 删除记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 批量修改状态
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int updateDeleteByIds(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(Logo record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(Logo record) throws Exception;

	/**
	 * 更新记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(Logo record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(Logo record) throws Exception;

	/**
	 * 批量修改状态
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int updateStateByIds(List<String> ids, int state) throws Exception;

	/**
	 * 批量修改状态只显示一条
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int updateStateByIdsOnlyOne(List<String> ids) throws Exception;

	/**
	 * 批量修改状态只显示一条
	 *
	 * @param state
	 * @return
	 * @throws Exception
	 */
	public int updateStateByIdOnlyOne(int state) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Logo selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<Logo> selectList(Logo record) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<Logo> selectListByPage(Map<String, Object> params, BasePage<Logo> page) throws Exception;

	/**
	 * 查询单条数据
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public Logo selectByLogo(Logo record) throws Exception;

}
